﻿@using Janus.BaseEntitys;
@{
    ViewBag.Title = "上传程序";
}

<style>
    .green {
        background-color: lawngreen;
    }

    .red {
        background-color: orangered;
    }
</style>

<div id="PFCreate_Container">
    <div class="PFCreate_Header">
        <div class="searchBar">
            <table class="searchContent">
                <tr>
                    <td>
                        料号：
                    </td>
                    <td style="padding-right:0px;">
                        @Html.SelectMaterial(new { @class = "select3", @style = "width:146px", @name = "ParentID", id = "ParentID", selectedvalue = "21" })
                    </td>
                    <td>
                        <div class="subBar">
                            <a id="btnSelectPrograme" class="button" href="Manufacturing/ProcessFiles/FilesSelected/" target="dialog" rel="btnSelectPrograme"><span>选择程序</span></a>
                        </div>
                    </td>
                    <td>
                        @Html.Partial("Others")
                    </td>
                </tr>
            </table>
        </div>
    </div>

    <div layoutH="55">
        <div class="pageHeader" style="margin-top:10px;">
            <div class="searchBar">
                <table class="list" style="width:100%;">
                    <thead>
                        <tr>
                            <th><input type="checkbox" group="ids" class="checkboxCtrl"></th>
                            <th>程序名</th>
                            <th>路径</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td><input name="ids" value="xxx" type="checkbox"></td>
                            <td>O001.NC</td>
                            <td>\\172.20.1.205\axure_share\MES\金属\金属MES\文档\主程序\下料</td>
                            <td><a href="#">删除</a></td>
                        </tr>
                        <tr>
                            <td><input name="ids" value="xxx" type="checkbox"></td>
                            <td>O002.NC</td>
                            <td>\\172.20.1.205\axure_share\MES\金属\金属MES\文档\主程序\下料</td>
                            <td><a href="#">删除</a></td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="tabs">
            <div class="tabsContent">
                <div>
                    <div layoutH="193" style="float:left; display:block; overflow:auto; width:200px; border:solid 1px #CCC; line-height:21px; background:#fff">
                        <ul class="tree treeFolder treeCheck expand" oncheck="kkk">
                            <li>
                                <a>CNC生产线</a>
                                <ul>
                                    <li><a tname="name" tvalue="value1" checked="true">东城A栋1楼</a></li>
                                    <li><a tname="name" tvalue="value2">东城B栋1楼</a></li>
                                </ul>
                            </li>
                        </ul>
                    </div>
                    <div>
                        <div id="gdBox" class="unitBox" style="margin-left:206px;">
                            <div class="MyPanel">
                                <table class="gridTbody list" width="100%">
                                    <thead>
                                        <tr class="header">
                                            <th><input type="checkbox" group="chkRecords" class="checkboxCtrl"></th>
                                            <th>记录编号</th>
                                            <th>料号</th>
                                            <th>工序</th>
                                            <th>工作中心</th>
                                            <th>机台ID</th>
                                            <th>计划夹具</th>
                                            <th>实际夹具</th>
                                            <th>差异</th>
                                            <th>上传时间</th>
                                            <th>上传状态</th>
                                            <th>状态描述</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr target="PlansId" rel="7">
                                            <td><input name="chkRecords" value="xxx" type="checkbox"></td>
                                            <td>SC2016032500001</td>
                                            <td>02K407A14M</td>
                                            <td>CNC1</td>
                                            <td>东城A栋1楼</td>
                                            <td>DS00001</td>
                                            <td>DJ000001</td>
                                            <td>DJ000001</td>
                                            <td class="green">一致</td>
                                            <td>2016-02-16 20:00:00</td>
                                            <td>OK</td>
                                            <td></td>
                                        </tr>


                                        <tr target="PlansId" rel="7">
                                            <td><input name="chkRecords" value="xxx" type="checkbox"></td>
                                            <td>SC2016032500001</td>
                                            <td>02K407A14M</td>
                                            <td>CNC1</td>
                                            <td>东城A栋1楼</td>
                                            <td>DS00001</td>
                                            <td>DJ000001</td>
                                            <td>DJ000001</td>
                                            <td class="green">一致</td>
                                            <td>2016-02-16 20:00:00</td>
                                            <td>OK</td>
                                            <td></td>
                                        </tr>
                                        <tr target="PlansId" rel="8">
                                            <td><input name="chkRecords" value="xxx" type="checkbox"></td>
                                            <td>SC2016032500002</td>
                                            <td>02K407A14M</td>
                                            <td>CNC1</td>
                                            <td>东城B栋1楼</td>
                                            <td>DS00001</td>
                                            <td>DJ000007</td>
                                            <td>DJ00088</td>
                                            <td class="red">差异</td>
                                            <td>2016-02-16 20:00:00</td>
                                            <td>OK</td>
                                            <td></td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<div class="formBar">
    <ul>
        <li>
            <div class="buttonActive">
                <div class="buttonContent">
                    <button type="submit">
                        上传程序
                    </button>
                </div>
            </div>
        </li>
        <li>
            <div class="button">
                <div class="buttonContent">
                    <button type="button" class="close">
                        返回列表
                    </button>
                </div>
            </div>
        </li>
    </ul>
</div>

<script type="text/javascript">
    $(function () {
        $("#btnSelectPrograme").click(
            function () {
                alert("1、初始化左边［工作中心］区/机台列表；\n2、根据[料号]弹出对应的机台文件；");
        });
    });

    function handleAfterBack() {
        alert("ok");
    }
</script>


